/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DBLayer;
import ModelLayer.*;
import java.util.ArrayList;

/**
 *
 * @author Claus
 */
public interface IFDBSupplier
{
    // get all suppliers
    public ArrayList<Supplier> getAllSuppliers(boolean retriveAssociation);
    //get one supplier having the ID
    public Supplier findSupplier(int id, boolean retriveAssociation);
    //find one supplier having the name
    public Supplier searchSupplierName(String attValue, boolean retriveAssociation);
    //insert a new supplier
    public int insertSupplier(Supplier sup);
    //update information about a supplier
    public int updateSupplier(Supplier sup);
    //delete information about a supplier
    public int deleteSupplier(int supplierID);
}
